package com.example.layui_project.dao;

import com.example.layui_project.comm.dao.BaseDao;
import com.example.layui_project.entity.SysRole;
import com.example.layui_project.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDao extends BaseDao<SysRole> {
    public List<SysRole> getRoleAndPermissionByMenu();

    public List<SysRole> getPermissionByRoleId(Integer roleId);

    public int batchAdd(@Param("role") SysRole role,@Param("ids") List<Integer> ids);

    public int removeAllRolePermission(Integer roleId);
}
